<div class="ranking_panel ranking_popular">
    <div class="box_border">
        <div class="wrap bd mpt a_tab">
            <ul class="tab_style_2 clrfix">
                <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">日</a></li>
                <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">周</a></li>
                <li>|<a href="javascript:;" tab_bd="e_tab_bd_3" class="e_tab_hanle">月</a></li>
                <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">总</a></li>
            </ul>
            
            <!-------------人气日榜Begin------------->
            <?php if($toproomsday){foreach($toproomsday as $key=>$val){?>
                <?php if($key == 0){?>
                    <div class="first clrfix e_tab_bd e_tab_bd_1">
                        <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>"></a>
                        <ul class="info">
                        	<li>
                            	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a>
                            </li>
                            <li>
                            	<span class="icon_ranking_order"></span>
                            </li>
                        </ul>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }else{?>
                     <div class="list clrfix e_tab_bd e_tab_bd_1">
                        <div class="order_num">
                            <img src="<?= STATIC_HTTP ?>img/order_num/<?php echo $key+1;?>.gif">
                        </div>
                        <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }?>
            <?php }}?>
            <!-------------人气日榜End------------->
            
            <!-------------人气周榜Begin------------->
            <?php if($toproomsweek){foreach($toproomsweek as $key=>$val){?>
                <?php if($key == 0){?>
                    <div class="first clrfix e_tab_bd e_tab_bd_2 hide">
                        <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>"></a>
                        <ul class="info">
                        	<li>
                            	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a>
                            </li>
                            <li>
                            	<span class="icon_ranking_order"></span>
                            </li>
                        </ul>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }else{?>
                     <div class="list clrfix e_tab_bd e_tab_bd_2 hide">
                        <div class="order_num">
                            <img src="<?= STATIC_HTTP ?>img/order_num/<?php echo $key+1;?>.gif">
                        </div>
                        <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }?>
            <?php }}?>
            <!-------------人气周榜End------------->
            
            <!-------------人气月榜Begin------------->
            <?php if($toproomsmonth){foreach($toproomsmonth as $key=>$val){?>
                <?php if($key == 0){?>
                    <div class="first clrfix e_tab_bd e_tab_bd_3 hide">
                        <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>"></a>
                        <ul class="info">
                        	<li>
                            	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a>
                            </li>
                            <li>
                            	<span class="icon_ranking_order"></span>
                            </li>
                        </ul>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }else{?>
                     <div class="list clrfix e_tab_bd e_tab_bd_3 hide">
                        <div class="order_num">
                            <img src="<?= STATIC_HTTP ?>img/order_num/<?php echo $key+1;?>.gif">
                        </div>
                        <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }?>
            <?php }}?>
            <!-------------人气月榜End------------->
            
            <!-------------人气月榜Begin------------->
            <?php if($toproomsall){foreach($toproomsall as $key=>$val){?>
                <?php if($key == 0){?>
                    <div class="first clrfix e_tab_bd e_tab_bd_4 hide">
                        <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif'); ?>"></a>
                        <ul class="info">
                        	<li>
                            	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a>
                            </li>
                            <li>
                            	<span class="icon_ranking_order"></span>
                            </li>
                        </ul>
                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }else{?>
                     <div class="list clrfix e_tab_bd e_tab_bd_4 hide">
                        <div class="order_num">
                            <img src="<?= STATIC_HTTP ?>img/order_num/<?php echo $key+1;?>.gif">
                        </div>
                        <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                       <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    </div>
                <?php }?>
            <?php }}?>
            <!-------------人气月榜End------------->
            
        </div>
    </div>
	<div class="hd"><a class="hd-title" title="根据房间人气进行排行"></a></div>
</div>